package com.egg.basic.service.pay;

import com.egg.basic.entity.pay.RefundRecord;
import com.egg.common.core.model.response.ResponseData;
import com.egg.common.mybatis.service.IBaseService;

import java.util.Optional;


public interface IRefundRecordService extends IBaseService<RefundRecord> {

    /**
     * 查询
     *
     * @param payRecordId 支付记录ID
     * @return
     */
    Optional<RefundRecord> findSuccessByPayRecordId(Long payRecordId);

    ResponseData<String> add(
            String businessType
            , String businessId
            , String remark
    );

}
